<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePetFindPetTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('pet_find_pet', function (Blueprint $table) {
            $table->increments('find_id');
            $table->string('title')->default('0')->comment('标题');
            $table->string('image')->default('')->comment('图片');
            $table->text('content')->comment('内容');
            $table->string('uid')->default('')->comment('发布者');
            $table->string('province_id')->default('')->comment('省份');
            $table->string('city_id')->default('')->comment('城市');
            $table->string('area')->default('')->comment('地区');
            $table->double('latitude')->comment('维度');
            $table->double('longitude')->comment('精度');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('pet_find_pet');
    }
}
